<?php
namespace Sys\Controller;
use Todo\Controller\ApiController;

class ApplicationController extends ApiController {
    /**
     * 自定义查询条件
     * @param array &$where 丢生成的查询条件
     */
    protected function _filter(&$where){
        $keywords = I('request.keywords');
        if($keywords){
            $where['title'] = array('like', '%'.$keywords.'%');
        }
    }
}